<%--
  Created by IntelliJ IDEA.
  User: 李赏赏
  Date: 2024/6/11
  Time: 14:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--
    1、el表达式
    作用:让jsp页面书写更加简洁，用来替代java表达式。只能获取值，不能设置值
    2、做简单的运算
        + - * / div  % mod
        && || ! and or not
        == eq != ne  > gt < lt  >= ge <=  le
        空判断 empty
        条件判断  A ? b : c

--%>
    ${1 + 1} <br>
    ${2 - 1} <br>
    ${3 * 3} <br>
    ${10 div 3} <br>
    ${10 mod 3} <br>
    ${1 == 1 and 2 > 2} <br>
    ${1 == 1 or 2 > 2} <br>
    ${not(1 == 1) } <br>
    ${2 eq 3} <br>
    ${2 ne 3} <br>
    ${2 gt 3} <br>
    ${2 lt 3} <br>
    ${2 le 2} <br>
    ${2 ge 2} <br>
    ${empty name} <br>
    ${10 > 3 ? "大于" : "小于"} <br>


</body>
</html>
